<!--Main Container-->
<div id="main">
    <!--Content-->
    <div id="content">
        <?php
        if ($message['text'] != '')
        { ?>
            <p class="<?php echo $message['type']; ?>"><?php echo $message['text']; ?></p>
        <?php 
        } ?> 
        <h3>Modifier le bloc <strong><?php echo $block['name_block']; ?></strong> sur la page <strong><?php echo $block['page_block']; ?></strong></h3>
        
        <form name="modif" action="" method="post">
            <?php if($block['length_block'] == null) 
            {
            ?>
            <textarea cols="50" rows="10" name="content" id="editor"><?php echo $block['content_block'] ?></textarea>
            <script type="text/javascript">
                CKEDITOR.replace( 'editor' );
            </script>
            <?php
            }
            else
            {
            ?>
            <input type="text" size="<?php echo $block['length_block']+20; ?>" maxlength="<?php echo $block['length_block']; ?>" name="content" value="<?php echo $block['content_block']; ?>"/>
            <?php
            }
            ?>
            <p>
                <input type="submit" name="save" class="button" value="Sauvegarder" />
                <input type="submit" name="back" class="button" value="Retour vers l'accueil" />
            </p>
        </form>
    </div>
</div>
